﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/Site.css" rel="stylesheet" />
    <title>考试平台</title>
    <style type="text/css">
        .center {
            position: absolute;
            margin: 0 auto;
            width: 300px;
            height: 200px;
            text-align: center;
            border: 1px solid black;
        }

        input[type=text] {
            width: 200px;
        }

        .field-validation-error {
            color: red;
        }

        .msg {
            color: red;
            text-align: center;
        }

        tr {
            height: 30px;
        }

        /* 半透明的遮罩层 */
        #overlay {
            background: #000;
            filter: alpha(opacity=50); /* IE的透明度 */
            opacity: 0.5; /* 透明度 */
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            z-index: 100; /* 此处的图层要大于页面 */
            display: none;
        }

        #layMsg {
            background: white;
            position: absolute;
            width: 200px;
            height: 20px;
            text-align: center;
            z-index: 101; /* 此处的图层要大于页面 */
            display: none;
        }
    </style>
</head>
<body>
    <div style="float:left; width:200px; text-align:center; font-size:20px;">
        @{
            if (ViewBag.RoleID == "1")
            {
                <div><a href='/UserInfo/Index'>用户管理</a></div>
                <div><a href='/ExamQues/Index'>考题管理</a></div>
                <div><a href='/ExamQuesItem/Index'>考题问题管理</a></div>
            }
        }

    </div>
    <div class="container body-content" style="float:left;">
        @RenderBody()
    </div>
    <script type="text/javascript">

        //浏览器视口的高度
        function windowHeight() {
            var de = document.documentElement;
            return self.innerHeight || (de && de.clientHeight) || document.body.clientHeight;
        }

        //浏览器视口的宽度
        function windowWidth() {
            var de = document.documentElement;
            return self.innerWidth || (de && de.clientWidth) || document.body.clientWidth;
        }
        function IsPositiveNum(num) {//是否为正整数
            var re = /^[0-9]*$/;
            return re.test(num);
        }

        function adjust(id) {
            var w = $(id).width();
            var h = $(id).height();

            var t = ($(window).height() / 2) - (h / 2);
            if (t < 0) t = 0;

            var l = ($(window).width() / 2) - (w / 2);
            if (l < 0) l = 0;

            $(id).css({ left: l + 'px', top: t + 'px' });
        }

    </script>
</body>
</html>
